[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
ing[alternative=doublesided] \definemargindata [MyInMargin][ininner] \definemarginframed[MyInMargin] [topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineframed[topruletitle] [width=max, frame=off, topframe=on, rulethickness=1pt, align={just

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-15 Thread Pablo Rodriguez via ntg-context
ata [MyInMargin][ininner] \definemarginframed[MyInMargin] [topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm] \defineframed[topruletitle] [width=max, frame=off, topframe=on, rulethickness=1pt, align={justify}, extras=\dontleavehmode] \startt

[NTG-context] About framedtext

2023-12-13 Thread Fabrice Couvreur
[MyColorA][.75(MyColorB,white)] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color, backgroundcolor=MyColorD, location=depth] \defineframedtext [FramedText] [offset=0.25em, style=\ss

[NTG-context] Re: \underbar in head

2023-09-20 Thread jbf
it be something to do with the version of LMTX? Mine is 2022.08.25 19:21 LMTX. I do have a workaround, with a \defineframed[underbarframed] and then setting offsets accordingly and using that as a textcommand. Julian On 21/9/23 14:26, Wolfgang Schuster wrote: jbf schrieb am 21.09.2023 um 05:03

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
to work. > > \framed has no style key, you have to use the foregroundstyle to change > font style, size etc. > > To create your own \framed (or \inframed when you add location=low) you > can use the \defineframed command: > > \d

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Wolfgang Schuster via ntg-context
} but nothing seems to work. \framed has no style key, you have to use the foregroundstyle to change font style, size etc. To create your own \framed (or \inframed when you add location=low) you can use the \defineframed command: \defineframed   [infr]   [location=low,    frame=on,    corner=00

Re: [NTG-context] Defineenumeration head offset

2022-11-07 Thread Wolfgang Schuster via ntg-context
Alexandre Christe via ntg-context schrieb am 07.11.2022 um 21:04: Dear list, Is there a trick to not apply the leftoffset to the header of a defineenumeration? MWE: [...] You can use \offset to shift the enumeration title. \defineframed   [ExampleHeadFrame]   [location=low,    background

Re: [NTG-context] Pull quote between two column - trial

2022-05-28 Thread Garulfo via ntg-context
{transparentred} ; \stopuseMPgraphic \defineoverlay[myOL1][\useMPgraphic{mytest1}] \defineoverlay[myOL2][\useMPgraphic{mytest2}] %=== \defineframed [MyBigFrame] [offset=-0.26pt, frameoffset=0pt, frame=off, strut=yes, before

[NTG-context] Pull quote between two column - trial

2022-05-21 Thread Garulfo via ntg-context
][\useMPgraphic{mytest2}] % \defineframed [FramePage] [align=width, frame=off, location=high, strut=yes, offset=0pt, width=\textwidth, height=\textheight, before=] \defineframed [FrameColumn] [FramePage

Re: [NTG-context] About "clearpage"

2021-12-16 Thread Wolfgang Schuster via ntg-context
] \stopalignment }} \stopsetups \startsetups[text b] \raise\MarginRaise\hbox{\vtop{\hsize=\Margin% \startalignment[left] \getmarking[section] \stopalignment }} \stopsetups \definemeasure [MarginWidth] [2cm] \definemeasure [MarginRaise] [56ex] \defineframed [MarginBlock] [frame=off, width

Re: [NTG-context] rule beneath chapter number

2021-11-11 Thread jbf via ntg-context
number, but neither achieve what I want. \underbar is too close to the number \setupbar[underbar][offset=-0.8] % play around with the number and \crlf\blackrule too far below. So basically my question is: is there a way of adjusting the position of a brief rule beneath the number? \defineframed

Re: [NTG-context] rule beneath chapter number

2021-11-11 Thread Aditya Mahajan via ntg-context
he number > and \crlf\blackrule too far below. So basically > my question is: is there a way of adjusting the position of a brief rule > beneath the number? \defineframed[underbarframed] [ frame=off, rulethickness=1pt,

[NTG-context] Adjustment for header and footer

2021-08-22 Thread Fabrice Couvreur via ntg-context
, location=middle] \setupbodyfont [newcomputermodern-book,11pt] \definefont [TextStyle] [SansBold*default sa 1.2] \defineframed [headerframed] [frame=off, height=fit, width=fit, ] \setupbackgrounds [header] [text] [frame=off,bottomframe=on,width=\widthpaper, framecolor

[NTG-context] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
Wolfgang), I have to create a solution environment like the attached image. My problem is adjusting the length of the frame. Thank you. Fabrice \setupbodyfont[newcomputermodern-book,11pt] \defineframed [ACFRAME] [frame=off, width=fit, align=flushleft, location=low

Re: [NTG-context] Adjust the length of a frame

2021-07-27 Thread Fabrice Couvreur via ntg-context
you. > Fabrice > > \setupbodyfont[newcomputermodern-book,11pt] > > \defineframed >[ACFRAME] >[frame=off, > width=fit, > align=flushleft, > location=low, > background=color, > backgroundcolor=lightgray, > foregroundcolor=, >

Re: [NTG-context] Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame

2021-07-26 Thread Wolfgang Schuster via ntg-context
\setupbodyfont[newcomputermodern-book,11pt] \defineframed    [ACFRAME]    [frame=off,     width=fit,     align=flushleft,     location=low,     background=color,     backgroundcolor=lightgray,     foregroundcolor=,     foregroundstyle=] \startuseMPgraphic{acframe} fill OverlayBox

[NTG-context] Texte source 30 / 5000 Résultats de traduction Adjust the length of a frame

2021-07-26 Thread Fabrice Couvreur via ntg-context
Hello, Following on from my previous questions for writing my book (thanks again Wolfgang), I have to create a solution environment like the attached image. My problem is adjusting the length of the frame. Thank you. Fabrice \setupbodyfont[newcomputermodern-book,11pt] \defineframed [ACFRAME

Re: [NTG-context] weekend upload

2021-07-12 Thread Jeong Dal
low. There is no error message but no output at all. Would you please tell me what is wrong in here? Best regards, Dalyoung \startMPdefinitions input boxes; primarydef a +- b = a -- (xpart a, ypart b) -- b enddef ; primarydef a -+ b = a -- (xpart b, ypart a) -- b enddef ; \stopMPdefiniti

Re: [NTG-context] First line of larger font paragraph on grid

2021-06-28 Thread denis.maier
]{#2}% } \setuphead [section] [ style=\bfe, %style={\bfe\setupinterlinespace[line=17.5pt]}, style={\bfe\setuplocalinterlinespace[line=17.5pt]}, after=, before=, command=\section_command, ] \protect \defineframed[myframed][ width=\textwidth,

Re: [NTG-context] First line of larger font paragraph on grid

2021-06-27 Thread denis.maier
frame=off, > rulethickness=0pt, > offset=0pt, > loffset=-0pt, > before=, > location=top, > align=flushleft,]{#2}% > } > > > \setuphead [section] [ > style=\bfe, >

Re: [NTG-context] First line of larger font paragraph on grid

2021-06-26 Thread Garulfo
et=0pt, loffset=-0pt, before=, location=top, align=flushleft,]{#2}% } \setuphead [section] [ style=\bfe, after=, before={\blank[1*line]}, command=\section_command, ] \protect \defineframed[myframed][ width=\tex

Re: [NTG-context] First line of larger font paragraph on grid

2021-06-26 Thread Garulfo
] % < added \definebodyfontenvironment [12pt] [e=20pt] % < added \defineframed[myframed][ width=\textwidth, frame=off, rulethickness=0pt, offset=0pt, loffset=-0pt, foregroundstyl

Re: [NTG-context] ntg-context Digest, Vol 204, Issue 76

2021-06-26 Thread Kirkham, Robin (Mineral Resources, Clayton)
Font] [Bold at 20pt] [24pt] > > \unprotect > \unexpanded\def\section_command#1#2{% > \framed [ >width=\textwidth, >frame=off, > rulethickness=0pt, >offset=0pt, >loff

[NTG-context] First line of larger font paragraph on grid

2021-06-25 Thread denis.maier
] [ style={\BigFont}, after=, before={\blank[1*line]}, command=\section_command, ] \protect \defineframed[myframed][ width=\textwidth, frame=off, rulethickness=0pt, offset=0pt, loffset=-0pt

Re: [NTG-context] question about frames

2020-11-26 Thread Andres Conrado Montoya
A bit late to the party but maybe this helps... try "frameoffset": \defineframed[caja][frameoffset=\zeropoint,width=5cm,height=2cm] \starttext \dorecurse{5}{\caja[frame=on]{Hello}} \stoptext -- Andrés Conra

[NTG-context] Line numbering skips lines

2020-10-30 Thread Felix Krause
Hi all, in a typing environment, I have the problem that not every line is numbered: \definetyping [code] [numbering=line, escape={@[,@]}] \setupcolors[state=start] \definecolor[nonsigpart][r=.7,g=.7,b=.7] \defineframed[nonsig] [location=low

Re: [NTG-context] About vertical typesetting in ConTeXt

2020-08-04 Thread Jairo A. del Rio
gives no ligatures in my computer so I've used \definefontfamily instead) %\definefont does not work as expected \definefontfamily[main][serif][mongolianwhite][features=mongolian] \setupbodyfont[main,24pt] \defineframed [vertical] [ offset=none, align=flushleft, anchoring=left, foregroundstyle

Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Mike Cooper
.73 bbl \NC = \NC > > 2,907 ft \NC \NR > >\stoptabulate \stopitem > >\startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = > > 2,907 × > 0.707 = 2,056 ft \stopitem > >\startitem ΔP = 2,056 ft × 0.

Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Aditya Mahajan
\stoptabulate \stopitem \startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 2,907 × 0.707 = 2,056 ft \stopitem \startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi \stopitemize \stoptext Naive solution: Add a \hbox around tabulate: \defineframed[tabulateframed

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
line like this: begin error message tex error > tex error on line 8 in file ./test.tex: ! Undefined control sequence \par draw outlinetext.f ("\frameletter end error message As the error message tells you the command \frameletter doesn't exist, you can fix this

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Fabrice Couvreur
utlinetext. > >> > >> 4. To achieve the desired result you can now a) use MetaPost to draw the > >> complete card (letter plus frame) or b) use only TeX to put the letter > in a > >> frame and rotate it. > >> > >> begin tex example >

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
a) use MetaPost to draw the complete card (letter plus frame) or b) use only TeX to put the letter in a frame and rotate it. begin tex example \usecolors[svg] \defineframed [frameletter] [width=1.25em, height=1.75em, foregroundstyle=\ssbfc, corner=round, radius=0.1

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Rudolf Bahr
t; work with outlinetext. > > 4. To achieve the desired result you can now a) use MetaPost to draw the > complete card (letter plus frame) or b) use only TeX to put the letter in a > frame and rotate it. > > begin tex example > \usecolors[svg] > > \defineframed &

Re: [NTG-context] Passing the parameters of a frame in an environment \startMPcode ... \stopMPcode

2020-04-20 Thread Wolfgang Schuster
in a frame and rotate it. begin tex example \usecolors[svg] \defineframed [frameletter] [width=1.25em, height=1.75em, foregroundstyle=\ssbfc, corner=round, radius=0.1\bodyfontsize, rulethickness=1pt] \starttext \startTEXpage[offset=\linewidth] \dontleavehmode \rotate

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
brice > > https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html > > \defineframed > [EXFRAME] > [frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=black, > foregroundcolor=white,

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
ttps://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html > > \defineframed > [EXFRAME] > [frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=black, > foregroundcolor=white, > f

Re: [NTG-context] Exercise file with statements and correction

2020-03-17 Thread Fabrice Couvreur
Hi Wolfgang, Is it possible to adapt your code with the environment that you proposed to me ? Thank you. Fabrice https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html \defineframed [EXFRAME] [frame=off, offset=0pt, location=low, width=\struttotal, background

Re: [NTG-context] line numbering within frame

2020-01-25 Thread Wolfgang Schuster
\define... the new instance inherits most of its values from a parent instance. You can overwrite individual values for your new instance but all other values are taken from the parent. begin example \setupframed[foregroundstyle=bold] \defineframed[customframe][framecolor=red] \starttext \fr

[NTG-context] maths simplifying fractions

2019-11-13 Thread jkitz
][\uniqueMPgraphic{cancel}] \defineframed[cancel] [background=cancel,frame=off,offset=0pt,location=low] \starttext \startformula 6 \frac{3}{8} \div 4 \frac{1}{2} = \frac{27}{4} \div \frac{9}{2} = \frac{\cancel{27}^3}{\cancel{4}^2} \times \frac{\cancel{2}^1}{\cancel{9}^1} = \frac{3}{2} = 1 \frac{1}{2

Re: [NTG-context] Problem with the bottom line of a header

2019-10-22 Thread Wolfgang Schuster
of text. 3. Use \offset to change the vertical position of the frame in the middle. \setuplayout   [header=1cm,    headerdistance=1cm] \setupbackgrounds [header] [text] [frame=on] \defineframed [headerframed] [align=normal] \setupheadertexts   [{\offset[y=-\strutdp]{\headerframed{Middle

[NTG-context] Problem with the bottom line of a header

2019-10-22 Thread Fabrice Couvreur
, topframe=off, bottomframe=on, framecolor=, rulethickness=1pt] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startuseMPgraphic{framewithshadow} path p; p:=origin--(1.05*OverlayWidth,0)--(1.05*OverlayWidth,1.05*OverlayHeight

[NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Fabrice Couvreur
Hello, Why items are numbered with a square instead of a bullet ? Thanks. Fabrice \definecolor[MyColorC][s=0.8784] \definecolor[MyColorD][m=0.27,y=1] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Hans Hagen
eur wrote: > Hello, > The date display is incorrect : I get day 28 instead of day 2. > Thank you > Fabrice > > \defineframed >    [headerframed] >    [frame=off, >     height=fit, >     width=fit] &

Re: [NTG-context] Problem of displaying a date with a macro

2019-09-09 Thread Fabrice Couvreur
8 instead of day 2. > > Thank you > > Fabrice > > > > \defineframed > >[headerframed] > >[frame=off, > > height=fit, > > width=fit] > > > > \definecolor[ColorA][0.8(white)] > > > > > > \startsetups [headertex

Re: [NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Aditya Mahajan
On Wed, 28 Aug 2019, Fabrice Couvreur wrote: Hello, The date display is incorrect : I get day 28 instead of day 2. Thank you Fabrice \defineframed [headerframed] [frame=off, height=fit, width=fit] \definecolor[ColorA][0.8(white)] \startsetups [headertext

[NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Fabrice Couvreur
Hello, The date display is incorrect : I get day 28 instead of day 2. Thank you Fabrice \defineframed [headerframed] [frame=off, height=fit, width=fit] \definecolor[ColorA][0.8(white)] \startsetups [headertext] \setupheadertexts [{\startframed [headerframed

Re: [NTG-context] Frame with shadow for header

2019-08-27 Thread Mikael P. Sundqvist
> like to use your code instead. > Thank you. > Fabrice > > > \setupbackgrounds > [header] > [text] > [frame=off, > topframe=off, > bottomframe=off, > framecolor=, > rulethickness=2pt] > > \defineframed > [h

Re: [NTG-context] Frame with shadow for header

2019-08-27 Thread Fabrice Couvreur
, topframe=off, bottomframe=off, framecolor=, rulethickness=2pt] \defineframed [headerframed] [frame=off, height=fit, width=fit] \definecolor[ColorA][0.8(white)] \startsetups [headertext] \setupheadertexts [{\startframed [headerframed

Re: [NTG-context] radiobuttons and other widgets

2019-08-05 Thread Henning Hraban Ramm
k the same. \setupfield[setup name][options][keyval options] would map to \defineframed[setup name][keyval options] \definefield[name][type][setup name][content values][default content] would map to \defineframed[nameField][keyval options] and inherit (how?) from "class name". Don’t know

[NTG-context] background problem with layers

2019-07-22 Thread Peter Rolf
Hi, I have a problem with a not printed color background when using layers. Small test file is attached. ConTeXt version: 2019.07.16 18:23 Peter test.pdf Description: Adobe PDF document \defineframed[framedclass][ foregroundcolor=black, foregroundstyle=\bfa, backgroundcolor

Re: [NTG-context] Distance between two Columns

2019-02-28 Thread Wolfgang Schuster
Ursula Hermann schrieb am 28.02.19 um 11:43: Dear List! I have the following example. I would like to have two columns that are in the distance small. So I have tried: \setuppapersize[A5] \startcolumns \defineframed    [tightframed][width=5cm,width.1\textwidth,align=right] \tightframed

Re: [NTG-context] Distance between two Columns

2019-02-28 Thread Marco Patzer
olumns [distance=2cm] > So I have tried: > > \setuppapersize[A5] > \startcolumns > \defineframed >[tightframed][width=5cm,width.1\textwidth,align=right] 1. Usually you don't define stuff in the main text. That's what the setup area (before \starttext) if for. 2. wi

[NTG-context] Distance between two Columns

2019-02-28 Thread Ursula Hermann
Dear List! I have the following example. I would like to have two columns that are in the distance small. So I have tried: \setuppapersize[A5] \startcolumns \defineframed [tightframed][width=5cm,width.1\textwidth,align=right] \tightframed{Small} \column \tightframed{A really really long line

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Otared Kavian
t; >[header] > >[text] > >[frame=off, > > topframe=off, > > bottomframe=on, > > framecolor=, > > rulethickness=1pt] > > > > \defineframed > >[headerframed] > >[frame=off, > > height

Re: [NTG-context] Macro for a header does not work as well

2019-02-19 Thread Fabrice Couvreur
> > [frame=off, > > topframe=off, > > bottomframe=on, > > framecolor=, > > rulethickness=1pt] > > > > \defineframed > >[headerframed] > >[frame=off, > > height=fit, > > width=fit] > > > > \startset

Re: [NTG-context] Macro for a header does not work as well

2019-02-18 Thread Otared Kavian
off, > topframe=off, > bottomframe=on, > framecolor=, > rulethickness=1pt] > > \defineframed >[headerframed] >[frame=off, > height=fit, > width=fit] > > \startsetups [headertext] > > \setupheadertexts >[{ > \startfra

[NTG-context] Macro for a header does not work as well

2019-02-18 Thread Fabrice Couvreur
, bottomframe=on, framecolor=, rulethickness=1pt] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=bold] \getvariable{headertext}{title} n\high{o

[NTG-context] index problem: [entry not flushed]

2019-02-11 Thread Jeong Dal
code? %%%%%% \defineframed [MyFramed] [frame=off, loffset=1ex, roffset=1ex, foregroundstyle=\ssbf] \startuseMPgraphic{MyFrame} picture p ; numeric o ; path a, b ; pair c ; %p := textext.rt("\FunnyFramed{\enumerationparameter{text} \convertedcounter[Theorem]

Re: [NTG-context] Issue with the latest beta of context standalone

2019-02-04 Thread Fabrice Couvreur
ethickness=1pt] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=bold] \getvariable{headertext}{title} n\high{o}\,\getvariable{

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Hans Hagen
  \mainlanguage[fr]   \setupbackgrounds     [header]     [text]     [frame=off, topframe=off, bottomframe=on, framecolor=, rulethickness=1pt]   \defineframed    [headerframed]    [frame=off,     height=fit,     width=fit]    \startsetups [headertext

Re: [NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Otared Kavian
mframe=on, > framecolor=, > rulethickness=1pt] > > \defineframed >[headerframed] >[frame=off, > height=fit, > width=fit] > >\startsetups [headertext] > \setupheadertexts > [{ > \startframed [headerfr

[NTG-context] Issue with the latest beta of context standalone

2019-01-27 Thread Fabrice Couvreur
] \defineframed [headerframed] [frame=off, height=fit, width=fit] \startsetups [headertext] \setupheadertexts [{ \startframed [headerframed] [foregroundstyle=bold] \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{number

[NTG-context] How to pass a parameter with \definedescription[]

2019-01-27 Thread Fabrice Couvreur
MyColorB][m=0.27,y=1] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color, backgroundcolor=MyColorB, location=depth] \defineframedtext [FramedText] [offset=0.5em, style=\ss, toffset=.25\lineheight,

Re: [NTG-context] commands manual (setup-en.pdf) organized by topic

2018-12-06 Thread Hans Hagen
command, say \defineframed \setupframed ... the concepts are the same (only a few commands for practical reasons behave different) And lately I often see here that setups are named like "foo:bar". What is the meaning of the double colon? variants (same command, different options) or

Re: [NTG-context] Text wrapped with an ornement

2018-08-19 Thread Fabrice Couvreur
h frames). > \definecolor[MyColorA][s=0.8784] > \definecolor[MyColorB][m=0.27,y=1] > > \defineframed >[FrameTitle] >[frame=off, > foregroundstyle=\bfx\ss, > foregroundcolor=white, > background=color, > backgroundcolor=MyColorB, > location=dept

Re: [NTG-context] Text wrapped with an ornement

2018-08-19 Thread Hans Hagen
that (if that is possible with frames). \definecolor[MyColorA][s=0.8784] \definecolor[MyColorB][m=0.27,y=1] \defineframed [FrameTitle] [frame=off, foregroundstyle=\bfx\ss, foregroundcolor=white, background=color, backgroundcolor=MyColorB, location=depth] \defineframedtext [FramedText] [offset

Re: [NTG-context] How to control the space between the bottom of the frame and the text?

2018-08-07 Thread Wolfgang Schuster
the bottom line of the frame, how to add a little space ? Thanks Fabrice \defineframed [ACFRAME] [frame=on, width=fit, align=flushleft, location=low, background=color, backgroundcolor=lightgray] \defineenumeration [exercice] [text={Exercice}, headstyle={\bf

Re: [NTG-context] How to control the space between the bottom of the frame and the text?

2018-08-07 Thread Alan Braslau
offset= On Tue, 7 Aug 2018 11:55:29 +0200 Fabrice Couvreur wrote: > Hello, > I find that the text is near the bottom line of the frame, how to add > a little space ? > Thanks > Fabrice > > \defineframed > [ACFRAME] > [frame=on, >width=fit, >a

[NTG-context] How to control the space between the bottom of the frame and the text?

2018-08-07 Thread Fabrice Couvreur
Hello, I find that the text is near the bottom line of the frame, how to add a little space ? Thanks Fabrice \defineframed [ACFRAME] [frame=on, width=fit, align=flushleft, location=low, background=color, backgroundcolor=lightgray] \defineenumeration [exercice] [text

Re: [NTG-context] Strange behavior with font pagella

2018-07-16 Thread Otared Kavian
le here I get the correct behaviour: the text is > not in bold face. > > Best regards: OK > >> On 15 Jul 2018, at 23:39, Fabrice Couvreur > <mailto:fabrice1.couvr...@gmail.com>> wrote: >> >> Good evening, >> In the code below, why is the text in bold ? &g

Re: [NTG-context] Strange behavior with font pagella

2018-07-16 Thread Fabrice Couvreur
in bold face. > > Best regards: OK > > On 15 Jul 2018, at 23:39, Fabrice Couvreur > wrote: > > Good evening, > In the code below, why is the text in bold ? > Thank you > Fabrice > > \setupbodyfont[pagella,11pt] > > \defineframed >[ACFRAME] >[

Re: [NTG-context] Strange behavior with font pagella

2018-07-16 Thread Otared Kavian
> \setupbodyfont[pagella,11pt] > > \defineframed >[ACFRAME] >[frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=black, > foregroundcolor=white, > forgroundstyle=

Re: [NTG-context] Strange behavior with font pagella

2018-07-15 Thread Rik Kabel
On 7/15/2018 17:39, Fabrice Couvreur wrote: \setupbodyfont[pagella,11pt] \defineframed    [ACFRAME]    [frame=off,     offset=0pt,     location=low,     width=\struttotal,     background=color,     backgroundcolor=black,     foregroundcolor=white,     forgroundstyle=bold] \defineprocessor

[NTG-context] Strange behavior with font pagella

2018-07-15 Thread Fabrice Couvreur
Good evening, In the code below, why is the text in bold ? Thank you Fabrice \setupbodyfont[pagella,11pt] \defineframed [ACFRAME] [frame=off, offset=0pt, location=low, width=\struttotal, background=color, backgroundcolor=black, foregroundcolor=white

[NTG-context] Compile problem after update

2018-07-15 Thread Fabrice Couvreur
, rulethickness=2pt] \defineframed[headerframed] [frame=off, location=depth, bottomoffset=\lineheight, align=middle, width=fit] \setupheadertexts[\headerframed{\ss\sc\bf\red Contrôle n\high{o}\,1

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-20 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 20 May 2018 08:02:46 -0600, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote: \definelabel[idris][text=,headstyle=,numberconversion=R] \defineframed [NUM] [width=fit, align=middle, frame=off, background=color, backgroundcolor=green, top={\idr

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-20 Thread Wolfgang Schuster
\definelabel[idris][text=,headstyle=,numberconversion=R] \defineframed [NUM] [width=fit, align=middle, frame=off, background=color, backgroundcolor=green, top={\idris\par}, location=bottom] \starttext \dorecurse{5}{Unnumbered Text \NUM{Numbered Text} } \stoptext Wolfgang

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Idris Samawi Hamid ادريس سماوي حامد
EXpage === This feels more like “the ConTeXt way” to me. \defineframed [MQTframed] [offset=overlay, frame=off, background=color, backgroundcolor=green, align=middle] \definecounter[MQT] \setcounter[MQT][1] \define[1]\NUM {% \startframed[MQTframed] \convertedcounter[MQT]\par

Re: [NTG-context] Numbered, counted snippets in running text

2018-05-19 Thread Henri Menke
page > === This feels more like “the ConTeXt way” to me. \defineframed [MQTframed] [offset=overlay, frame=off, background=color, backgroundcolor=green, align=middle] \definecounter[MQT] \setcounter[MQT][1] \define[1]\NUM {% \startframed[MQTframed] \converte

Re: [NTG-context] Framed & before/after

2018-03-22 Thread Wolfgang Schuster
Procházka Lukáš Ing. <mailto:l...@pontex.cz> 21. März 2018 um 14:24 Hello, does \framed recognize before and after keys, as mentioned here: http://wiki.contextgarden.net/Command/defineframed or:http://wiki.contextgarden.net/Command/setupframedtexts ? In the following e

Re: [NTG-context] Framed & before/after

2018-03-22 Thread Aditya Mahajan
On Thu, 22 Mar 2018, Henri Menke wrote: On Wed, 2018-03-21 at 14:24 +0100, Procházka Lukáš Ing. wrote: Hello, does \framed recognize before and after keys, as mentioned here: http://wiki.contextgarden.net/Command/defineframed or: http://wiki.contextgarden.net/Command

Re: [NTG-context] Framed & before/after

2018-03-21 Thread Henri Menke
On Wed, 2018-03-21 at 14:24 +0100, Procházka Lukáš Ing. wrote: > Hello, > > does \framed recognize before and after keys, as mentioned here: > > http://wiki.contextgarden.net/Command/defineframed > or: http://wiki.contextgarden.net/Command/setupframedtexts ? > >

Re: [NTG-context] Framed & before/after

2018-03-21 Thread Pablo Rodriguez
On 03/21/2018 02:24 PM, Procházka Lukáš Ing. wrote: > Hello, > > does \framed recognize before and after keys, as mentioned here: > > http://wiki.contextgarden.net/Command/defineframed > or: http://wiki.contextgarden.net/Command/setupframedtexts ? Hi Lukáš, \fr

[NTG-context] Framed & before/after

2018-03-21 Thread Procházka Lukáš Ing .
Hello, does \framed recognize before and after keys, as mentioned here: http://wiki.contextgarden.net/Command/defineframed or: http://wiki.contextgarden.net/Command/setupframedtexts ? In the following example it seems both keys are ignored: \defineframed[AddressBox][before

[NTG-context] Scale figure to fill a box

2018-02-04 Thread Wolfgang Schuster
the image extends outside of the borders of the frame. A option to clip parts – which can be disabled – of the image which are outside of the frame would be a nice extension to this command (e.g. in case you want a image in a table cell). \setupexternalfigure[location=default] \defineframed

Re: [NTG-context] Question about an environment

2018-01-31 Thread Fabrice Couvreur
. 2. 3. Thank you. Fabrice 2018-01-28 22:54 GMT+01:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > Hello, > How to make the first item on the baseline of the numbering as in the > first exercise ? > Thanks. > Fabrice > > \defineframed > [ACFRAME] &g

[NTG-context] Question about an environment

2018-01-28 Thread Fabrice Couvreur
Hello, How to make the first item on the baseline of the numbering as in the first exercise ? Thanks. Fabrice \defineframed [ACFRAME] [frame=off, boffset=0pt, width=fit, align=flushleft, location=low, background=color, backgroundcolor=MyColorA] \defineframed [EXFRAME

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
expected and one at the beginning of the framed text which I don’t want. One more thing, is there no way to show the number of the Definition? you can download a beta and try \defineenumeration[Theorem] [alternative=empty, before=\startMyText, after=\stopMyText] \defineframed

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Jeong Dal
of the framed text which I don’t want. One more thing, is there no way to show the number of the Definition? Thanks again. Best regards, Dalyoung %% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] %%% define the background of Theorems: \defineframed [FunnyFramed] [frame

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
[\??constructionrenderings:\v!empty] \noindent \useconstructionstyleandcolor\c!style\c!color \ignorespaces \stopsetups \protect % till here \defineenumeration[Theorem] [alternative=empty, before=\startMyText, after=\stopMyText] \defineframed [MyFramed] [frame=off, loffset

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
of Theorems: \defineframed [FunnyFramed] [frame=off, loffset=1ex, roffset=1ex, foregroundstyle=\ssbf] \startuseMPgraphic{FunnyFrame} picture p ; numeric o ; path a, b ; pair c ; p := textext.rt("\FunnyFramed{\enumerationparameter{text} \convertedcounter[Th

[NTG-context] referencing the customized enumeration with framed title

2018-01-11 Thread Jeong Dal
}[] shows ?? instead of numbers while \in{Exam}[] shows correctly. Is there a way to show the numbers correctly? Thank you for reading. Best regards, Dalyoung %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] %%% define the background of Theorems: \defineframed

Re: [NTG-context] framed with titles

2017-12-02 Thread Pablo Rodriguez
> > Dalyoung > > %% first method > %1. use \enumerationparameter{text} and add “text=Theorem” in > \defineenumeration. > %%% > \defineframed >   [FunnyFramed] >   [frame=off, >    loffset=1ex, >    roffset=1ex, >    foregroundstyle=\ssbf]

Re: [NTG-context] framed with titles

2017-12-02 Thread Jeong Dal
the similar problem. Thanks Wolfgang again. Best regards, Dalyoung %% first method %1. use \enumerationparameter{text} and add “text=Theorem” in \defineenumeration. %%% \defineframed [FunnyFramed] [frame=off, loffset=1ex, roffset=1ex, foregroundstyle=\ssbf

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-19 Thread Fabrice Couvreur
=] \setupfootertexts[\tfxx Page \pagenumber\,/\,\lastpage][] \definecolor[darkgray] [s=.25] \setupbackgrounds [header] [text] [ frame=off, bottomframe=on, framecolor=darkgray, rulethickness=2pt, ] \defineframed[headerframed] [ frame=off, % For visualization set

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
t; >>> # >>> MyLayout.tex >>> # >>> >>> % macros=mkvi >>> >>> \startenvironment MyLayout >>> >>> \setuplayout >>>[header=3\lineheight, >>> headerdistance=\lineheight] >

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik
aderdistance=\lineheight] \setupbackgrounds   [header]   [text]   [     frame=off,     bottomframe=on,     framecolor=darkgray,     rulethickness=2pt,   ] \defineframed[headerframed] [

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
;> MyLayout.tex >>> # >>> >>> % macros=mkvi >>> >>> \startenvironment MyLayout >>> >>> \setuplayout >>>[header=3\lineheight, >>> headerdistance=\lineheight] >>> >>> \setupbackgro

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
e >> >> # >> MyLayout.tex >> # >> >> % macros=mkvi >> >> \startenvironment MyLayout >> >> \setuplayout >>[header=3\lineheight, >> headerdistance=\lineheight] >> >> \setupbackg

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik Kabel
macros=mkvi \startenvironment MyLayout \setuplayout    [header=3\lineheight,     headerdistance=\lineheight] \setupbackgrounds   [header]   [text]   [     frame=off,     bottomframe=on,     framecolor=darkgray,     rulethickness=2pt,   ] \

  1   2   3   4   >